package kin.json;

import java.io.IOException;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;




public class EnumSerializer extends JsonSerializer<Enum>{

	@Override
	public void serialize(Enum arg0, JsonGenerator arg1, SerializerProvider arg2)
			throws IOException, JsonProcessingException {
		System.out.println("Enum"+arg0.ordinal());
		arg1.writeNumber(arg0.ordinal());
		
	}

	
	


	
}
